import {RouteRecordRaw} from "vue-router";
import Layout from '@/Layout/index.vue'
import {renderIcon} from "../../utils";
import {BrowsersOutline} from '@vicons/ionicons5'

const routeName = 'order'

const routes:Array<RouteRecordRaw> = [
    {
        path:'/order',
        name:routeName ,
        component:Layout,
        redirect:'/order/list',
        meta:{
            title:'财务管理',
            icon:renderIcon(BrowsersOutline),
            sort:2
        },
        children:[
            {
                path:'list',
                name:`${routeName}_list`,
                meta:{
                    title:'订单列表',
                    icon:renderIcon(BrowsersOutline)
                },
                component:() => import('@/views/order/index.vue')
            },
            {
                path:'refund',
                name:`${routeName}_refund`,
                meta:{
                    title:'退款订单',
                    icon:renderIcon(BrowsersOutline)
                },
                component:() => import('@/views/order/refund.vue')
            }
        ]
    }
]
export default routes